$.extend({
  CommonMain: {
    //////////////////////////////////////////////
    //初始化页面
    //////////////////////////////////////////////
    PageInit: function () {
      //显示用户信息or登录信息
      if (_StateData.IsLogin) {
        $('[name="GroupMainUserLogin"]').hide();
        $('[name="GroupMainUserInfo"]').show();
      } else {
        $('[name="GroupMainUserInfo"]').hide();
        $('[name="GroupMainUserLogin"]').show();
      }
      //用户登陆&注册
      $(document).delegate('[UserSign]', 'click', function () {
        var _Type = $(this).attr('UserSign');
        switch (_Type) {
          case 'In':
          case 'Up':
            $.CommonMain.Login(_Type);
            break;
          case 'Out':
            $.CommonMain.Logout();
            break;
        }
      });
      $(document).delegate('form#formMainUserSign_Up_Phone input', 'keydown', function (e) {
        if (!_.includes(['text', 'password'], $(this).attr('type'))) {
          return;
        }
        if (!e) {
          e = window.event;
        }
        if ((e.keyCode || e.which) == 13) {
          $('form#formMainUserSign_Up_Phone #btnMainUserSign_Up_Phone').click();
        }
      });
      //第三方登录qq和微博
      $(document).delegate('[UserOAuth]', 'click', function () {
        var _Type = $(this).attr('UserOAuth');
        switch (_Type) {
          case 'QQ':
            _Type = 'qqconnect';
            break;
          case 'Weibo':
            _Type = 'weibo';
            break;
          case 'Weixin':
            _Type = 'weixin';
            break;
          default:
            return;
        }
        var _UserSignValue = $.CommonMain.User_SignValue();
        window.open(_VirtualPath.Main + 'oauth/' + _Type + '.tologin?RoomID=' + _UserSignValue.RoomID + '&SignUp_Url=' + _UserSignValue.URL, "TencentLogin", "width=450,height=320,menubar=0,scrollbars=1,resizable=1,status=1,titlebar=0,toolbar=0,location=1");
      });
      //打开相关窗口
      $(document).delegate('[OpenWindow]', 'click', function (e) {
        $.CommonMain.OpenWindow({
          ID: $(this).attr('OpenWindow'),
          Element: this,
          Event: e
        });
      });
      //初始化页面
      $.Common.PageInit();
    },
    //////////////////////////////////////////////
    //PageDataCheck(验证PageData)
    //////////////////////////////////////////////
    PageDataCheck: function () {
      var _ThisData;
      try {
        _ThisData = _PageData;
      } catch (ex) {
      }
      if (!_ThisData || _ThisData.flag == undefined || _ThisData.flag === 0) {
        return true;
      }
      $.KOC.Tips.Open('Error', _ThisData.message ? _ThisData.message + '(' + _ThisData.flag + ')' : _ThisData.flag, {
        Timeout: 1000,
        onClose: function () {
          if (document.referrer.indexOf(_VirtualPath.Main) == 0) {
            window.location.href = document.referrer;
          } else if (navigator.userAgent.indexOf("Firefox") != -1 || navigator.userAgent.indexOf("Chrome") != -1) {
            window.location.href = "about:blank";
          } else {
            window.close();
          }
        }
      });
      return false;
    },
    //////////////////////////////////////////////
    //检查用户登录状态
    //////////////////////////////////////////////
    LoginCheck: function () {
      if (!_StateData.IsLogin) {
        $.CommonMain.Login('In');
        return false;
      }
      return true;
    },
    //////////////////////////////////////////////
    //用户登陆
    //////////////////////////////////////////////
    Login: function (SignType) {
      if (_StateData.IsLogin) {
        $.KOC.Tips.Open('Error', '您现在已经登录此平台,如切换帐号请先退出', {Timeout: 1000});
        return;
      }
      $.colorbox({
        scrolling: false,
        fixed: true,
        onComplete: function () {
          //////////////////////////////////////////////
          //注册 or 登录 显示切换
          //////////////////////////////////////////////
          switch (SignType) {
            case 'In':
              $('#MainUserSign_In').show();
              $('#MainUserSign_Swap_Button > a').removeClass('active').eq(0).addClass('active');
              // $.Common.Geetest.fnInit({
              //   Mode: "float",
              //   Container: "#divMainUserSign_In_Geetest",
              //   onReady: function () {
              //     $('#divMainUserSign_In_Geetest > span:first-child').hide();
              //   }
              // });
              break;
            case 'Up':
              $('#MainUserSign_Up').show();
              $('#MainUserSign_Swap_Button > a').removeClass('active').eq(1).addClass('active');
              break;
          }
          $.colorbox.resize();
          //////////////////////////////////////////////
          //用户登录
          //////////////////////////////////////////////
          $('#formMainUserSign_In').validate({
            submitHandler: function (form) {
              // if (!$(form).find('input[name="geetest_challenge"]').val()) {
              //   $.KOC.Tips.Open('Error', '请拖动滑块完成拼图验证', {Timeout: 1500});
              //   return;
              // }
              var _inputPassword = $(form).find('input[name="Password"]');
              _inputPassword.val(md5(_inputPassword.val()));
              $(form).ajaxSubmit({
                type: 'post',
                dataType: 'json',
                url: '/ajaxs/business.user-signin',
                beforeSubmit: function () {
                  $.KOC.Loading.Open();
                },
                success: function (data) {
                  $.KOC.Loading.Close();
                  if (data.flag !== 0) {
                    // $.Common.Geetest.fnRefresh();
                    $.KOC.Tips.Open('Error', data.msg + '(' + data.flag + ')', {Timeout: 1500});
                    _inputPassword.val('');
                    return;
                  }
                  $.KOC.Tips.Open('Success', '登录成功', {
                    Timeout: 1000,
                    onClose: function () {
                      location.reload(true);
                    }
                  });
                }
              });
            }
          });
          $('#btnMainUserSign_In').click(function () {
            $('#formMainUserSign_In').submit();
          });
          //////////////////////////////////////////////
          //用户注册:手机
          //////////////////////////////////////////////
          $('#formMainUserSign_Up_Phone').validate({
            submitHandler: function (form) {
              var _UserSignValue = $.CommonMain.User_SignValue();
              $(form).find('input[name="Password"]').val(md5($(form).find('input[name="Password_One"]').val()));
              $(form).ajaxSubmit({
                type: 'post',
                dataType: 'json',
                url: '/ajaxs/business.user-signup',
                data: {
                  Room_ID: _UserSignValue.RoomID,
                  SignUp_Url: _UserSignValue.URL
                },
                beforeSubmit: function () {
                  $.KOC.Loading.Open();
                },
                success: function (data) {
                  $.KOC.Loading.Close();
                  if (data.flag !== 0) {
                    $.KOC.Tips.Open('Error', '注册失败:' + data.msg, {Timeout: 1000});
                    return;
                  }
                  $.KOC.Tips.Open('Success', '用户注册完成', {
                    Timeout: 1000,
                    onClose: function () {
                      location.reload(true);
                    }
                  });
                }
              });
            }
          });
          $('#btnMainUserSign_Up_Phone').click(function () {
            $('#formMainUserSign_Up_Phone').submit();
          });
          //获取短信验证码
          $('#btnMainUserSign_Up_PhoneVerifyCode').click(function () {
            var _Button = $(this);
            if (_Button.hasClass('disable')) {
              return;
            }
            var _Phone = $('#formMainUserSign_Up_Phone input[name="Phone"]');
            var _PhoneNumber = _Phone.val();
            if (!(/^1\d{10}$/).test(_PhoneNumber)) {
              _Phone.focus();
              $.KOC.Tips.Open('Error', '请输入正确的手机号', {Timeout: 3000});
              return;
            }
            $.Common.PhoneVerifyCode.fnSend(_PhoneNumber, function () {
              //成功
              $.KOC.Tips.Open('Success', '验证短信已经发送至:' + _PhoneNumber + ',请注意查收', {Timeout: 2000});
              $.Common.PhoneVerifyCode.fnCountdown(function (Interval) {
                _Button.addClass('disable');
                if (Interval <= 0) {
                  _Button.removeClass('disable').text('重新获取验证码');
                } else {
                  _Button.text(Interval + '秒后重新获取');
                }
              });
            });
          });
        },
        html: '<div class="xiu-passport-frame">' +
        '<div class="xiu-passport-content">' +
        '<a href="javascript:;" class="xiu-ps-close" id="J_MainSing_Closed"></a>' +
        '<div class="xiu-ps-switch" id="MainUserSign_Swap_Button">' +
        '<a href="javascript:;" UserSign="In">登录</a>' +
        '<a href="javascript:;" UserSign="Up">注册</a>' +
        '</div>' +
        '<div class="xiu-ps-main">' +
        '<div class="xiu-ps-tab-content" id="MainUserSign_In">' +
        '<div class="xiu-ps-body">' +
        '<form id="formMainUserSign_In">' +
        '<div class="form-input">' +
        '<input type="text" class="input" name="LoginName" required placeholder="用户名 / 邮箱 / 手机号" title="请输入 用户名 / 邮箱 / 手机号" autocomplete="off" autocapitalize="off">' +
        '</div>' +
        '<div class="form-input">' +
        '<input type="password" name="Password" required class="input" placeholder="登录密码" title="请输入登录密码">' +
        '</div>' +
        // '<div class="form-input form-input-geetest" id="divMainUserSign_In_Geetest"><span class="geetestloading">验证码加载中....</span>' +
        // '</div>' +
        '<div class="form-input-submit">' +
        '<a href="javascript:;" class="btn" id="btnMainUserSign_In">立即登录</a>' +
        '</div>' +
        '<div class="form-input-rember">' +
        '<a href="/forget/" target="_blank" class="txt-fr">忘记密码？</a>' +
        '<span class="txt-fl"><label><input name="Remember" value="1" type="checkbox" checked>30天内自动登录</label></span>' +
        '</div>' +
        '</form>' +
        '</div>' +
        '</div>' +
        '<div class="xiu-ps-tab-content xiu-ps-reg-content" id="MainUserSign_Up">' +
        '<div class="xiu-ps-body" id="MainUserSign_Up_Phone">' +
        '<form id="formMainUserSign_Up_Phone">' +
        '<div class="form-input">' +
        '<input type="text" class="input" name="Phone" placeholder="请输入手机号" required title="请输入正确的手机号">' +
        '</div>' +
        '<div class="form-input">' +
        '<input type="text" class="input input-code" name="VerifyCode" placeholder="请输入验证码" required title="请输入验证码">' +
        '<a href="javascript:;" class="getcode hqm" id="btnMainUserSign_Up_PhoneVerifyCode">获取验证码</a>' +
        '</div>' +
        '<div class="form-input">' +
        '<input name="Password" type="hidden"/>' +
        '<input type="password" class="input"  id="MainUserSign_Up_Phone_Password" name="Password_One" placeholder="登录密码:4～12字符区分大小写" required minlength="4" maxlength="12" title="登录密码必须4～12个字符">' +
        '</div>' +
        '<div class="form-input">' +
        '<input type="password" class="input" name="Password_Two" placeholder="请再次输入密码" required equalTo="#MainUserSign_Up_Phone_Password" title="两次输入的密码不相同">' +
        '</div>' +
        '<div class="form-input-submit">' +
        '<a href="javascript:;" class="btn" id="btnMainUserSign_Up_Phone">注册</a>' +
        '</div>' +
        '<div class="form-input-rember">' +
        '<a href="/forget/" target="_blank" class="txt-fr">忘记密码？</a>' +
        '<span class="txt-fl"><label><input name="Agreement" type="checkbox" checked="checked" required title="请阅读并同意用户协议">已阅读并同意<a href="/agreement/user" target="_blank" class="txt-xy">《全民秀使用协议》</a></label></span>' +
        '</div>' +
        '</form>' +
        '</div>' +
        '</div>' +
        '</div>' +
        '<div class="xiu-ps-bottom">' +
        '<span class="other-login">第三方登录</span>' +
        '<div class="other-account">' +
        // '<a href="javascript:;" class="qq" UserOAuth="QQ"></a>' +
        '<a href="javascript:;" class="weixin" UserOAuth="Weixin"></a>' +
        // '<a href="javascript:;" class="weibo" UserOAuth="Weibo"></a>' +
        '</div>' +
        '</div>' +
        '</div>' +
        '</div>'
      });
      $("#J_MainSing_Closed").on("click", function () {
        $.colorbox.close();
      });
    },
    //////////////////////////////////////////////
    //退出登录
    //////////////////////////////////////////////
    Logout: function (req) {
      $.getJSON("/ajaxs/base.logout"
        , {}
        , function (json) {
          if (json.flag !== 0) {
            $.KOC.Tips.Open('Error', json.msg + '(' + json.flag + ')', {Timeout: 1000});
            return;
          }
          $.KOC.Tips.Open('Success', '安全退出完成，本页将在1秒后自动刷新', {
            Timeout: 1000,
            onClose: function () {
              if (req) {
                $.Common.ModalWindow.fnEnter();
              }
              location.reload(true);
            }
          });
        }
      );
    },
    //////////////////////////////////////////////
    //打开相关窗口
    //////////////////////////////////////////////
    OpenWindow: function (parm, onEnter, onClose) {
      var _parm = {
        Info: false,
        ID: null,
        Type: null,
        URL: '',
        Parm: '',
        RightCode: null,
        Modal: true,
        Element: null,
        Event: null,
        onEnter: onEnter,
        onClose: onClose
      };
      switch (typeof parm) {
        case 'string':
          _parm.ID = parm;
          break;
        case 'object':
          _parm.ID = parm.ID;
          _parm.Element = parm.Element;
          _parm.Event = parm.Event;
          break;
        default:
          $.KOC.Tips.Open('Error', '传入参数错误', {Timeout: 1000});
          return;
      }
      if (!_parm.ID) {
        $.KOC.Tips.Open('Error', '传入参数错误', {Timeout: 1000});
        return;
      }
      if (_parm.ID.indexOf('[Info]') == 0) {
        _parm.Info = true;
        _parm.ID = _parm.ID.substr(6);
      }
      var _parmValue = _parm.ID.split('|');
      for (var i = 0; i < _parmValue.length; i++) {
        var ThisValue = _parmValue[i].split(':');
        switch (ThisValue.length) {
          case 1:
            _parm.Type = ThisValue[0].substr(6, 2);
            _parm.ID = ThisValue[0];
            break;
          case 2:
            if (_parm.Parm) {
              _parm.Parm += '&';
            }
            _parm.Parm += ThisValue[0] + '=' + ThisValue[1];
            break;
          case 3:
            _parm.Type = ThisValue[1];
            _parm.ID = ThisValue[2];
            break;
        }
      }
      switch (_parm.Type) {
        case 'UserAvatar'://用户头像
          _parm.URL = {
            overlayClose: true,
            href: '/member/users/avatar',
            innerWidth: 700,
            innerHeight: 480
          };
          _parm.onEnter = function () {
            location.reload(true);
          };
          _parm.RightCode = '';
          break;
        case 'UserCover'://用户封面
          _parm.URL = {
            overlayClose: true,
            href: '/member/users/cover',
            innerWidth: 700,
            innerHeight: 480
          };
          _parm.onEnter = function () {
            location.reload(true);
          };
          _parm.RightCode = 'Anchor:';
          break;
        case 'UserChangePassword'://用户更改密码
          _parm.URL = {
            overlayClose: true,
            href: '/member/users/change-password',
            innerWidth: 468,
            innerHeight: 290
          };
          _parm.onEnter = function () {
            location.reload(true);
          };
          _parm.RightCode = '';
          break;
        case 'UserExchange'://用户兑换
          _parm.URL = {
            overlayClose: true,
            href: '/member/users/exchange',
            innerWidth: 468,
            innerHeight: 290
          };
          _parm.onEnter = function () {
            location.reload(true);
          };
          _parm.RightCode = '';
          break;
        case 'AnchorLiveReport'://直播间举报
          _parm.URL = {
            overlayClose: true,
            href: '/report/room/' + _parm.ID,
            innerWidth: 333,
            innerHeight: 332
          };
          _parm.onEnter = function () {
            location.reload(true);
          };
          _parm.RightCode = '';
          break;
        case 'AnchorCash'://艺人兑换
          _parm.URL = {
            overlayClose: true,
            href: '/member/users/cash',
            innerWidth: 468,
            innerHeight: 290
          };
          _parm.onEnter = function () {
            location.reload(true);
          };
          _parm.RightCode = 'Anchor:';
          break;
        case 'FamilyIncomeInfo'://公会收入明细
          _parm.URL = {
            overlayClose: true,
            href: '/member/users/IncomeInfo/' + _parm.ID,
            innerWidth: 970,
            innerHeight: 550
          };
          _parm.onEnter = function () {
            location.reload(true);
          };
          _parm.RightCode = '';
          break;
        case 'FamilyAnchorLiveInfo'://公会公会直播明细
          _parm.URL = {
            overlayClose: true,
            href: '/member/users/LiveInfo/' + _parm.ID,
            innerWidth: 970,
            innerHeight: 550
          };
          _parm.onEnter = function () {
            location.reload(true);
          };
          _parm.RightCode = '';
          break;
        case 'UserChangeBound'://qq 微博 绑定手机号并设置密码
          _parm.URL = {
            overlayClose: true,
            href: '/member/users/user-bound-thirdparty',
            innerWidth: 470,
            innerHeight: 350
          };
          _parm.onEnter = function () {
            location.reload(true);
          };
          _parm.RightCode = '';
          break;
        case 'UserChangeBoundEmail'://email 绑定手机号
          _parm.URL = {
            overlayClose: true,
            href: '/member/users/user-bound-email',
            innerWidth: 468,
            innerHeight: 290
          };
          _parm.onEnter = function () {
            location.reload(true);
          };
          _parm.RightCode = '';
          break;
        default:
          $.KOC.Tips.Open('Error', '未知的打开类型', {Timeout: 1000});
          return;
      }
      if (_parm.RightCode != undefined) {
        if (!_parm.RightCode && !_StateData.IsLogin) {
          $.CommonMain.Login('In');
          return;
        }
        if (!$.Common.Permission.Check(_parm.RightCode)) {
          if (_parm.Info) {
            try {
              parent.$.colorbox.close();
            } catch (ex) {
              window.close();
            }
          } else {
            $.KOC.Tips.Open('Error', '您没有进行此操作的权限', {Timeout: 1000});
          }
          return;
        }
      }
      if (!_parm.URL) {
        return;
      }
      if (_parm.Parm) {
        _parm.URL.href += (_parm.URL.href.indexOf('?') >= 0 ? '&' : '?') + _parm.Parm;
      }
      if (_parm.Info) {
        window.location.href = _parm.URL;
        return;
      }
      if (_parm.Modal) {
        $.Common.ModalWindow.Open(_parm.URL, _parm.onEnter, _parm.onClose);
        return;
      }
      if ((_parm.Element ? _parm.Element.nodeName : null) === 'A') {
        $(_parm.Element).attr('href', _parm.URL);
        if (_parm.Event) {
          $.Common.DefaultPrevented.Call(_parm.Event, _parm.Element);
        }
      } else {
        window.location.href = _parm.URL;
      }
    },
    //////////////////////////////////////////////
    //获取用户注册参数值
    ////////////////////////////////////////////
    User_SignValue: function () {
      var _Value = {
        RoomID: window.location.pathname,
        URL: window.location.href
      };
      if (_Value.RoomID.indexOf('/room/') == 0) {
        _Value.RoomID = _Value.RoomID.replace('/room/', '').split('/')[0];
      }
      _Value.RoomID = $.KOC.String.ToIntPositive(_Value.RoomID);
      return _Value;
    },
    //////////////////////////////////////////////
    //用户信息
    //////////////////////////////////////////////
    User_UserInfo: function (onComplete) {
      $.getJSON("/ajax/user.user-info.info", {}, function (json) {
        if (typeof onComplete === 'function') {
          onComplete(json);
        }
      });
    },
    //////////////////////////////////////////////
    //用户关注
    //////////////////////////////////////////////
    User_Attention: function (User_ID_Attention, Type, onComplete) {
      $.getJSON("/ajaxs/business.user-attention", {
        User_ID_Attention: User_ID_Attention,
        Type: Type
      }, function (json) {
        if (typeof onComplete === 'function') {
          onComplete(json);
        }
      });
    },
    //////////////////////////////////////////////
    //用户更换坐骑
    //////////////////////////////////////////////
    User_MountsUpdate: function (Mounts_ID, onComplete) {
      $.KOC.Loading.Open();
      $.getJSON("/ajaxs/business.user-mountsupdate", {
        Mounts_ID: Mounts_ID
      }, function (json) {
        $.KOC.Loading.Close();
        if (json.flag !== 0) {
          $.KOC.Tips.Open('Error', json.msg + '(' + json.flag + ')', {Timeout: 1000});
          return;
        }
        if (typeof onComplete === 'function') {
          onComplete(json);
        }
      });
    },
    //////////////////////////////////////////////
    //座骑购买
    //////////////////////////////////////////////
    User_MountsPurchase: function (Mounts_ID, onComplete) {
      $.KOC.Loading.Open();
      $.getJSON("/ajaxs/business.user-mountspurchase", {
        Mounts_ID: Mounts_ID
      }, function (json) {
        $.KOC.Loading.Close();
        if (json.flag !== 0) {
          $.KOC.Tips.Open('Error', json.msg + '(' + json.flag + ')', {Timeout: 1000});
          return;
        }
        if (typeof onComplete === 'function') {
          onComplete(json);
        }
      });
    },
    //////////////////////////////////////////////
    //VIP购买
    //////////////////////////////////////////////
    User_VIPPurchase: function (Mounts_ID, onComplete) {
      $.KOC.Loading.Open();
      $.getJSON("/ajaxs/business.user-vippurchase", {
        VIP_ID: VIP_ID
      }, function (json) {
        $.KOC.Loading.Close();
        if (json.flag !== 0) {
          $.KOC.Tips.Open('Error', json.msg + '(' + json.flag + ')', {Timeout: 1000});
          return;
        }
        if (typeof onComplete === 'function') {
          onComplete(json);
        }
      });
    },

    //////////////////////////////////////////////
    //用户举报
    //////////////////////////////////////////////
    User_Report: function (Content, Type, Anchor_ID, Screenshot, onComplete) {
      $.KOC.Loading.Open();
      $.getJSON("/ajax/business.user-report", {
        Content: Content,
        Type: Type,
        Anchor_ID: Anchor_ID,
        Screenshot: Screenshot
      }, function (json) {
        $.KOC.Loading.Close();
        if (json.flag !== 0) {
          $.KOC.Tips.Open('Error', json.msg + '(' + json.flag + ')', {Timeout: 1000});
          return;
        }
        if (typeof onComplete === 'function') {
          onComplete(json);
        }
      });
    },
    //////////////////////////////////////////////
    //用户充值
    //////////////////////////////////////////////
    User_PayOrder: function (pay_type, pay_amt, pay_code) {
      // location.href="htttp://127.0.0.1:2999/heepay/business.user-payorder&pay_type="+pay_type+"&pay_amt="+pay_amt+"pay_code="+pay_code;
      $.getJSON("/heepay/business.user-payorder", {
        pay_type: pay_type,
        pay_amt: pay_amt,
        pay_code: pay_code
      }, function (json) {
        if (json.flag !== 0) {
          $.KOC.Tips.Open('Error', json.msg + '(' + json.flag + ')', {Timeout: 1000});
          return;
        }
        if (typeof onComplete === 'function') {
          onComplete(json);
        }
      });
    },
    //////////////////////////////////////////////
    //??????????????????????
    //??????????????????????
    //////////////////////////////////////////////
    Modal_Tip: function (data, settings) {
      var defaultSetting = {
        Title: "提示",
        Msg: "",
        Timeout: 1500,
        Autoclosed: true,
        Type: "xiu-dstip-info",
        onClose: null, //关闭触发事件
        Callback: null //回调函数
      };
      var settings = arguments[1] ? arguments[1] : defaultSetting;
      $.extend(defaultSetting, settings);

      if (defaultSetting && typeof defaultSetting.onClose === 'function') {
        defaultSetting.onClose.call();
        defaultSetting.onClose = null;
      }
      if (defaultSetting && typeof defaultSetting.Callback === 'function') {
        defaultSetting.Callback.call();
        defaultSetting.Callback = null;
      }

      var _Id = new Date().getTime();
      var _Html = '<div class="xiu-dstip-box ' + defaultSetting.Type + '" id="J_Ds_' + _Id + '">' +
        '<div class="xiu-dstip-inner">' +
        '<div class="xiu-dstip-head">' +
        '<h2 class="xiu-dstip-title">' + defaultSetting.Title + '</h2>' +
        '<a href="javascript:;" class="xiu-dstip-closed" id="J_Dc_' + _Id + '"></a>' +
        '</div>' +
        '<div class="xiu-dstip-body">' +
        '<div class="xiu-dstip-content">' +
        '<p class="dstip-txt">' + data + defaultSetting.Msg + '</p>' +
        '</div>' +
        '</div>' +
        '</div>' +
        '</div>';
      $(".xiu-dstip-box").remove();
      $("body").append(_Html);
      $("#J_Dc_" + _Id).off("click");
      $("#J_Dc_" + _Id).on("click", function () {
        $("#J_Ds_" + _Id).remove();
      });
      if (defaultSetting.Autoclosed) {
        clearTimeout(_Tip);
        var _Tip = setTimeout(function () {
          $("#J_Ds_" + _Id).remove();
        }, defaultSetting.Timeout)
      }
    }
  }
});